import {createApp} from 'vue'
import './style.css'
import App from './App.vue'
import 'virtual:uno.css'
// main.ts

// 如果您正在使用CDN引入，请删除下面一行。
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router'
import {createPinia} from 'pinia'
import piniaPluginPersistedState from 'pinia-plugin-persistedstate';

import {PiniaColada} from '@pinia/colada'
import zhCn from "element-plus/es/locale/lang/zh-cn";

import vue3PhotoPreview from 'vue3-photo-preview';
import 'vue3-photo-preview/dist/index.css';


const app = createApp(App)


app.use(vue3PhotoPreview);

app.use(ElementPlus, {
  locale: zhCn
})
app.use(router)
app.use(createPinia().use(piniaPluginPersistedState))
app.use(PiniaColada, {
  queryOptions: {
    refetchOnWindowFocus: false,
    refetchOnMount() {
        return false;
    },
  }
})
app.mount('#app')